class Admin::AttachmentsController < Admin::ApplicationController
  respond_to :js, :html

  def index

  end

  def create
    @attachment = Attachment.create file: params[:file]
    render layout: false
  end

  def destroy
    @attachment = Attachment.find params[:id]
    @attachment.destroy
  end
end
